Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add isPlainObject #133

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

ignoreintuition
Copy link
Contributor

No description provided.

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
@DerekNonGeneric DerekNonGeneric changed the title added isPlainObject feat: add isPlainObject Oct 15, 2022
Copy link
Member

@DerekNonGeneric DerekNonGeneric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although nearly all of these additional changes made in c1aa265 are desirable, they do fall outside the scope of this PR (which is to handle the addition of a new helper function).

I am thinking that we can propose your changes from that commit as being made in a separate PR so that we can continue the discussion relating to isPlainObject here…

Let me see about moving that commit over into another PR.

DerekNonGeneric and others added 3 commits October 16, 2022 22:30
Refs: https://babeljs.io/docs/en/assumptions#setspreadproperties

Fixes: OpenINF#141
Fixes: OpenINF#139

Co-authored-by: Brian Greig <brian@resurgencewebdesign.com>
Co-authored-by: septs <github@septs.pw>

Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
This commit fixes the style issues introduced in 34fdb2a according to the output
from prettier.

Details: https://deepsource.io/gh/openinf/util-object/transform/cbebf681-0853-4c36-8d29-c8d47d0f641f/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
@DerekNonGeneric DerekNonGeneric added the wip Issues and PRs that are still a work in progress label Oct 18, 2022
DerekNonGeneric and others added 5 commits October 17, 2022 22:21
Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
)

Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.8.5 to 18.11.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Restyled Commits <commits@restyled.io>

Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
Signed-off-by: Restyled Commits <commits@restyled.io>
renovate bot and others added 4 commits October 19, 2022 23:02
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.0 to 18.11.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.2 to 18.11.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@DerekNonGeneric
Copy link
Member

@ignoreintuition, do you think you would be able to rebase this PR when you get the chance? It would be cool to see what CI is saying about it now. Let me know if you have any trouble (i think i can do it on my end as well).

@ignoreintuition
Copy link
Contributor Author

I rebased the file and added merged in my change. I am getting some errors in the workflows. Not sure if I did something wrong.

renovate bot and others added 6 commits October 24, 2022 23:56
)

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
)

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@DerekNonGeneric
Copy link
Member

Well, it's the last day of Hacktoberfest and I want you to get credit for this, but this commit should not be touching unrelated functions. Can you keep this focused on the one function?

@ignoreintuition
Copy link
Contributor Author

Unfortunately I am working late tonight. I'll try to look at this later this week.

): boolean {
if (o1 === null || o2 === null) {
): boolean => {
if (o1 == undefined || o2 == undefined) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (o1 == undefined || o2 == undefined) {
if (isNullish(o1) || isNullish(o2)) {

@DerekNonGeneric
Copy link
Member

well, we kinda pulled the source code out from under you now (not sure what to do about that)

maybe i will refactor this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: typescript enhancement javascript PRs that update JavaScript code wip Issues and PRs that are still a work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request] add new isPlainObject predicate function
2 participants